appt.el code simplifications.
authorGlenn Morris <rgm@gnu.org>
Thu, 12 May 2011 07:56:02 +0000 (00:56 -0700)
committerGlenn Morris <rgm@gnu.org>
Thu, 12 May 2011 07:56:02 +0000 (00:56 -0700)
commit24c32a26d1a2a23f980b1d906fa3846da523a0a7
tree4aae4f6dac5b109e940cd73494386aa4859d4e09
parentfe81bc4929502d7e9dd797e885bbb927a93066f7
appt.el code simplifications.

* lisp/calendar/appt.el (appt-now-displayed): Remove pointless variable.
(appt-check): Simplify.

Details:
appt-now-displayed was set non-nil the first time a reminder was displayed.
Nothing ever set it back to nil again.  Thus when full-check was nil,
mode-line-only was always true, so the "(when (or full-check mode-line-only)"
was pointless.  That was the only use of full-check.  mode-line-only
was only used in a negative sense, and can be reduced to the zerop test.
lisp/ChangeLog
lisp/calendar/appt.el